namespace sy1_3
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            InitializeComponent();
            lblText.Top = -lblText.Height;
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            lblText.Top += 2;
            if (lblText.Top > this.Height)
            {
                lblText.Top = -lblText.Height;
            }
        }

        private void lblText_Click(object sender, EventArgs e)
        {
            lblText.ForeColor = Color.Blue;
        }
        private void lblText_MouseLeave(object sender, EventArgs e)
        {
            lblText.ForeColor =Color.Red;
        }
    }
}
